home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriterLQ (alt. rdip) / LQResources.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-15  |  7.8 KB  |  127 lines  |  [TEXT/MPS ]

  1. /* ------------------------------------------------------------------------------
  2. FILENAME
  3.     Resources.h
  4.  
  5. DESCRIPTION
  6.     This module contains the ImageWriter LQ resource constants that
  7.     are common to both the New (QuickDraw GX) API resources (NewAPIResources.r) 
  8.     and the Old (QuickDraw) API resources (OldAPIResources.r).
  9.         
  10. COPYRIGHT
  11.      Copyright Apple Computer, Inc. 1988-1996
  12.      All rights reserved. 
  13.  
  14.     12/20/93        dmh        Sync'd with the shipping 1.0b3 GX driver.
  15.      8/28/94        dmh        Sync'd with the shipping 1.0.1 GX driver.
  16.      6/14/96        cn            Updated to support Universal Interfaces 2.1.
  17.  
  18. -------------------------------------------------------------------------------- */
  19.  
  20. #ifndef __NEWLWRESOURCES__
  21. #define __NEWLWRESOURCES__
  22.     
  23. // Include the public QuickDraw GX printing files 
  24. // #include "GXPrinting.h"
  25.  
  26.  
  27. /*********************************************************************************
  28.  *                                CONSTANTS                                                              *
  29.  *********************************************************************************/
  30.  
  31. /************* Constants shared among the ImageWriter LQresource files *************/
  32.  
  33. #define    kDrvrCreatorType                        'scLQ'                            // Creator type of the driver 
  34. #define    kDrvrFileType                            'pdvr'                            // QuickDraw GX drivers have this type 
  35. #define    kDriverName                                "ImageWriter LQ"                // Name of the driver (C string) 
  36.  
  37. #define    kNewPaperTypesID                        gxPrintingDriverBaseID        // Starting resource ID of the new API paper types 
  38. #define    kNumNewPaperTypes                        6                                    // Number of new API paper type definitions 
  39.  
  40. #define    kOldPaperTypesID                        (kNewPaperTypesID + kNumNewPaperTypes + 1)    // Starting resource ID of the new API paper types 
  41. #define    kNumOldPaperTypes                        6                                                            // Number of new API paper type definitions 
  42.  
  43. #define    kFirstMsgJumpTableOffset            4                                    // Offset (bytes) into message code segment jump table of first jump table entry 
  44. #define    kNewAPISegmentID                        0                                    // Resource ID of code segment containing routines that override new API messages 
  45. #define    kOldAPISegmentID                        1                                    // Resource ID of code segment containing routines that override old API messages 
  46.  
  47. #define    kLookRsrcID                                (-4096)                            // Resource ID of the driver's 'look' resource 
  48. #define    kPAPCommRsrcID                            (-4096)                            // Resource ID of the driver's PAP 'comm' resource 
  49. #define    kSerialCommRsrcID                        (-4095)                            // Resource ID of the driver's Serial 'comm' resource 
  50. #define    kPrinterShareCommRsrcID                (-4094)                            // Resource ID of the driver's PrinterShare 'comm' resource 
  51.  
  52. #define    kPrintOptionsDlgRsrcID                (-8138)                            // Resource ID of the Options dialog that's linked to the Print dialog 
  53.  
  54. #define    kDriverStatusID                        gxPrintingDriverBaseID + 1    // Resource ID of Page Transmission 'stat' resource 
  55. #define        kSendingPartOfPageStatIdx        1                                    // Sending part of a page 'stat' list entry 
  56.  
  57. #define    kNoAlertCoolID                            0                                    // Resource ID of 'cool' alert that tells Printing Manager not to alert 
  58.  
  59. #define    kHwinRsrcID                                (-8192)                            //    Resource ID of 'hwin' help resource used by the driver
  60. #define    kHfdrRsrcID                                (-5696)                            //    Resource ID of 'hfdr' help resource used by the driver
  61. #define    kFinderHelpSTRID                        (gxPrintingDriverBaseID + 1)    //    Resource ID of 'STR ' help resource used by the driver
  62.  
  63. #define    isManualFeed                            true                                // Useful mnemonic for dealing with manual feed jobs 
  64.  
  65. #define    kBufferSize                                9100                                //    Size (in bytes) of the packaging and I/O buffers to use
  66.  
  67.                                                                                             //    Job collection item indices
  68. #define    kHeadMotionItemIndex                    0                                    // Index into the job collection of the head motion collection item 
  69. #define    kTraySettingsItemIndex                1                                    // Index into the job collection of the tray settings collection item 
  70.  
  71.                                                                                             //    Resource ID's of the various StartSendPage strings used by the Raster Imaging Engine
  72. #define    kHighResUniDirID                        gxPrintingDriverBaseID            // High resolution printing with unidirectional head movement 
  73. #define    kHighResBiDirID                        (gxPrintingDriverBaseID + 1)    // High resolution printing with bidirectional head movement 
  74. #define    kLowResUniDirID                        (gxPrintingDriverBaseID + 2)    // Low resolution printing with unidirectional head movement 
  75. #define    kLowResBiDirID                            (gxPrintingDriverBaseID + 3)    // Low resolution printing with biidirectional head movement 
  76.  
  77.                                                                                             //    Resource ID's related to the Sheetfeeder configuration dialog
  78. #define    kSheetFeederDLOG                        gxPrintingDriverBaseID            // Sheetfeeder configuration DLOG 
  79. #define    kSheetFeederDITL                        gxPrintingDriverBaseID            // Sheetfeeder configuration DITL 
  80.  
  81. #define    kTray1Menu                                gxPrintingDriverBaseID            // Menu of paper types for tray #1 
  82. #define    kTray2Menu                                (gxPrintingDriverBaseID + 1)    // Menu of paper types for tray #2 
  83. #define    kTray3Menu                                (gxPrintingDriverBaseID + 2)    // Menu of paper types for tray #3 
  84.  
  85. #define    kTray1Control                            gxPrintingDriverBaseID            // Control for paper types for tray #1 
  86. #define    kTray2Control                            (gxPrintingDriverBaseID + 1)    // Control for paper types for tray #2 
  87. #define    kTray3Control                            (gxPrintingDriverBaseID + 2)    // Control for paper types for tray #3 
  88.  
  89. #define    kOneTrayPICT                            gxPrintingDriverBaseID            // PICT respresenting a one tray configuration 
  90. #define    kTwoTrayPICT                            (gxPrintingDriverBaseID + 1)    // PICT respresenting a two tray configuration 
  91. #define    kThreeTrayPICT                            (gxPrintingDriverBaseID + 2)    // PICT respresenting a three tray configuration 
  92.  
  93.                                                                                             //    Resource ID's related to the LQ Options dialog panel
  94. #define    kLQOptionsDITL                            (gxPrintingDriverBaseID + 1)    // LQ Options dialog panel DITL 
  95. #define    kLQOptionsXdtl                            (gxPrintingDriverBaseID + 1)    // LQ Options dialog panel 'xdtl' 
  96. #define    kLQOptionsPanl                            gxPrintingDriverBaseID            // LQ Options dialog panel 'panl' 
  97.  
  98.                                                                                             //    Resource ID's related to the LQ Driver's paper input trays
  99. #define    kDefaultTrayRsrcID                    (gxTrayCountDataID + 1)        // Default 'tray' resource for the LQ 
  100. #define    kDefaultSheetFeederRsrcID            (gxTrayCountDataID + 0)        // Default 'tray' resource for the LQ with a sheet feeder attached
  101.  
  102. #define    kDefaultTrayNameID                    gxPrintingDriverBaseID            // Default 'tryn' resource for the non-sheet feeder configuration
  103. #define    kDefaultSheetFdrTray1NameID        (gxPrintingDriverBaseID + 1)    // Default 'tryn' resource for tray #1 of the sheet feeder configuration 
  104. #define    kDefaultSheetFdrTray2NameID        (gxPrintingDriverBaseID + 2)    // Default 'tryn' resource for tray #2 of the sheet feeder configuration 
  105. #define    kDefaultSheetFdrTray3NameID        (gxPrintingDriverBaseID + 3)    // Default 'tryn' resource for tray #3 of the sheet feeder configuration 
  106.  
  107.                                                                                             //    Identifiers for the various (native mode) national character sets available
  108. #define    kAmerican                                0                                    //    American character set
  109. #define    kBritish                                    1                                    //    British character set
  110. #define    kDanish                                    2                                    //    Danish character set
  111. #define    kFrench                                    3                                    //    French character set
  112. #define    kGerman                                    4                                    //    German character set
  113. #define    kItalian                                    5                                    //    Italian character set
  114. #define    kSwedish                                    6                                    //    Swedish character set
  115. #define    kSpanish                                    7                                    //    Spanish character set
  116.  
  117.                                                                                             //    'STR#' resource ID's used to support job format modes
  118. #define    kFormatModeFontsID                    gxPrintingDriverBaseID            // List of "native" mode fonts supported
  119. #define    kFormatModeStylesID                    (gxPrintingDriverBaseID + 1)    //    List of "well" known styles that are supported
  120. #define     kQualityID                                (gxPrintingDriverBaseID + 2)
  121. #define    kBoldStyle                                1                                    //    Index into kFormatModeStylesID 'STR#' of the bold style string
  122. #define    kUnderlineStyle                        2                                    //    Index into kFormatModeStylesID 'STR#' of the underline style string
  123. #define     kBestString                                1
  124. #define     kRoughString                            2
  125. #define     kHelpID                                    (gxPrintingDriverBaseID + 3)
  126. #endif __NEWLWRESOURCES__
  127.